<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .content{
            height: 500px;
            border: 1px solid;
        }
    </style>
</head>
<body>
    <a href="#no1"> to  1</a>
    <a href="#no2"> to  2</a>
    <a href="#no3"> to  3</a>
    <a href="#no4"> to  4</a>
    <a id="no1"></a>
    <div class="content">No.1</div>
    <a id="no2"></a>
    <div class="content">No.2</div>
    <a id="no3"></a>
    <div class="content">No.3</div>
    <a id="no4"></a>
    <div class="content">No.4</div>
    <a href="#no1"> to  1</a>
    <a href="#no2"> to  2</a>
    <a href="#no3"> to  3</a>
    <a href="#no4"> to  4</a>
</body>
</html>